package com.zx.map.dao;

import com.zx.map.dao.model.*;
import org.springframework.dao.DataAccessException;

import java.util.List;

/**
 * Created by IntelliJ IDEA. User: ������ Date: 15-5-12 Time: ����14:11
 * �̻�����ݿ���ز���
 */
public interface MerchantOfflineConfigInfoDao {

    /**
     * 新增
     *
     * @param merchantOfflineConfigInfo
     * @return
     * @throws DataAccessException
     */
    public String add(MerchantOfflineConfigInfo merchantOfflineConfigInfo) throws DataAccessException;

    /**
     * 更新
     *
     * @param merchantOfflineConfigInfo
     * @return
     * @throws DataAccessException
     */
    public String update(MerchantOfflineConfigInfo merchantOfflineConfigInfo) throws DataAccessException;

    /**
     * 删除
     *
     * @param merchantOfflineConfigInfo
     * @throws DataAccessException
     */
    public void delete(MerchantOfflineConfigInfo merchantOfflineConfigInfo) throws DataAccessException;

    /**
     * 分页查询
     *
     * @param pageSize
     * @param pageBegin
     * @param example
     * @return
     * @throws DataAccessException
     */
    public List<MerchantOfflineConfigInfo> getPageByExample(int pageSize, int pageBegin,
                                                            MerchantOfflineConfigInfoExample example) throws DataAccessException;

    /**
     * 根据Model查找List
     *
     * @param example
     * @return
     * @throws DataAccessException
     */
    public List<MerchantOfflineConfigInfo> getListByExample(MerchantOfflineConfigInfoExample example)
            throws DataAccessException;

    /**
     * 查找条数
     *
     * @param example
     * @return
     * @throws DataAccessException
     */
    public int countByExample(MerchantOfflineConfigInfoExample example)
            throws DataAccessException;

    /**
     * 根据单Key查找Model
     *
     * @param key
     * @return
     * @throws DataAccessException
     */
    public MerchantOfflineConfigInfo selectByPrimaryKey(String key)
            throws DataAccessException;

}
